package dm.ast.model.gen.factory;

/**
 * @author weihuixin
 * @date 2024/2/29
 * @Description  With子句的复杂度模板设置
 */
public class WithModelFactory extends BaseModelFactory{
    //此处仅随机确定with子句包含的CTE数目
    //以及分配每个CTE的深度和宽度
    public static ComplexityModel withModels(int wid_t,int dep_t){
        int ctes = r.getInteger(1,FactoryConstant.MAX_WITH_CTES + 1);
        ComplexityModel model = BaseModelFactory.defaultModel(wid_t,dep_t,ctes);
        return model;
    }
}
